package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.entity.Protocol;

/**
 * 协议管理
 *
 * @author chechen
 * @date 2021-12-28
 */
public interface ProtocolService extends IService<Protocol> {

    IPage<Protocol> queryProtocolPage(Page<Protocol> page, Protocol protocol);

    Protocol getProtocolById(Integer id);

    boolean containsPrimaryKey(Integer id);

    String addProtocol(Protocol protocol);

    int updateProtocol(Protocol protocol);

    int deleteProtocol(Long id);

}
